home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / sgml / unix / sgmlh / ndenvcb.src < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-03  |  1.8 KB  |  33 lines

  1. /******************************************************************************/
  2. /* ENVCB.H: Control blocks used by text processor environment.
  3.             (Ideas for non-DOS environments.)
  4. */
  5. /******************************************************************************/
  6. /* Define I/O types for document files (message files are always stream I/O). */
  7. /******************************************************************************/
  8. #ifdef IBMC                   /* Stream I/O for IBMC (mainframe) only. */
  9.   #define STREAMIO
  10. #else
  11.   #define LOWLEVIO
  12. #endif /* def IBMC */
  13. #ifdef STREAMIO
  14.   typedef FILE * HANDLE;      /* Stream I/O: handle is control block ptr. */
  15. #else                         /* If low-level I/O: */
  16.   typedef int HANDLE;         /* Low-level I/O: handle is integer. */
  17. #endif
  18. /******************************************************************************/
  19. struct iofcb {                /* I/O file control block. */
  20.      HANDLE fcbfd;            /* DOS file handle. */
  21.      long fcboff;             /* Offset in file of current read block. */
  22.      char *fcbxid;            /* External ID string. */
  23.      char *fcbnext;           /* Next file in fcbxid (NULL if no more). */
  24.      char fcbfile[FILESPEC+2];/* Full system fileid (length + EOS). */
  25.      int fcbcatsw;            /* 1=catenate next file on next read; 0=no. */
  26.      int fcbRS;               /* 1=prefix RS to first file of entity; 0=no. */
  27.      int fcbRE;               /* 1=strip RE from last file of entity; 0=no. */
  28.      int fcbfirst;            /* 1=next read will be the first; 0=no. */
  29. };
  30. #define IPBFCB ((struct iofcb *)io->ipbn)      /* IPBFILE: Ptr to SGMLIO fcb. */
  31. #define FLID (((struct iofcb *)SCBFCB)->fcbfile)/* Actual fileid of file. */
  32. /******************************************************************************/
  33.